import {Image, Tooltip} from "antd";
import {GithubOutlined, WechatOutlined} from "@ant-design/icons";
import {DefaultFooter} from "@ant-design/pro-components";
import wechat from "../../assets/wechat.png"
import lqq from "../../assets/qq.jpg"
const MainFooter =()=>{
    // 年份不写死
    const year = new Date().getFullYear();
    return(
        <DefaultFooter
            copyright={"@"+year+" 无需终有&近水楼台出品"}
            links={[
                {
                    key: 'github',
                    title:(
                        <Tooltip title="查看本站技术及源码">
                            <GithubOutlined/> 支持项目
                         </Tooltip>
                    ) ,
                    href: 'https://gitee.com/jiao-ruifang/open-api.git',
                    blankTarget: true,
                },
                {
                    key: '联系作者',
                    title: (
                        <Tooltip title={
                            <Image src={wechat} alt="微信 code_nav"/>
                        }
                        >
                            <WechatOutlined/> 微信联系作者
                        </Tooltip>
                    ),
                    blankTarget: true,
                },
                {
                    key: '联系作者',
                    title: (
                        <Tooltip title={
                            <Image src={lqq} alt="微信 code_nav" />

                        }
                        >
                            <WechatOutlined/> QQ联系作者
                        </Tooltip>
                    ),
                    blankTarget: true,
                },
                {
                    key: 'Ant Design',
                    title: 'Ant Design',
                    href: 'https://ant.design',
                    blankTarget: true,
                },
            ]}
        />
    )
}
export default MainFooter
